#ifndef _BLP_HEADER_
#define _BLP_HEADER_


typedef unsigned int   uint;
typedef unsigned char uchar;

#define PALETTE_SIZE 256

enum EBlpDataType
{
    E_BDT_JPEG = 0,
    E_BDT_PALETTED = 1
};

struct BLP_RGBA
{
	uchar Red;
	uchar Green;
	uchar Blue;
	uchar Alpha;
};

//+-----------------------------------------------------------------------------
//| Blp pixel structure
//+-----------------------------------------------------------------------------
struct BLP_PIXEL
{
	uchar Index;
};

struct SBlpHeader
{
    char szTag [4];
    uint uCompress;
    uint uNumMipMaps;
    uint uSizeX;
    uint uSizeY;
    uint uPicType;
    uint uPicSubType;
    uint uMipmapOffset [16];
    uint uMipmapSize [16];
};

LPDIRECT3DTEXTURE9 LoadBLP(LPDIRECT3DDEVICE9 pd3dDevice, LPSTR lpszFileName, int *pPicType = NULL);
































#endif